﻿using Service.Repository;
using SqlSugar;

namespace Service.Auth.Domain.AggregatesModel
{
    /// <summary>
    /// Api资源表
    /// </summary>
    [SugarTable("tb_scope_api_resources")]
    public class ScopeApiResources : Entity, IAggregateRoot
    {
        public ScopeApiResources()
        {
        }


        public ScopeApiResources(string id, string apiId, string desc)
        {
            Id = id;
            ApiId = apiId;
            Desc = desc;
        }

        /// <summary>
        /// 资源范围Id
        /// </summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public String Id { set; get; }


        /// <summary>
        /// 资源标识
        /// </summary>
        [SugarColumn(ColumnName = "api_id", IsPrimaryKey = true)]
        public String ApiId { set; get; }

        /// <summary>
        /// 资源描述
        /// </summary>
        [SugarColumn(ColumnName = "desc")]
        public String Desc { set; get; }
    }
}